package com.edu.entiy;

import java.sql.Timestamp;

public class History {
	private int historyId;//借书记录id
	private int userId;//用户id
	private int bookId;//借阅书籍id
	private int card;//借阅书籍的类型id
	private String bookName;//借阅书籍的名称
	private String userName;//借阅用户的用户名
	private String nickname;//用户昵称
	private Timestamp  beginTime;//借书时间
	private Timestamp endTime;//最迟还书时间
	private Timestamp realTime;//实际还书时间
	private int status;//书籍状态
	public History() {
		super();
	}
	public History(int historyId, int userId, int bookId, int card, String bookName, String userName, String nickname,
			Timestamp beginTime, Timestamp endTime, Timestamp realTime, int status) {
		super();
		this.historyId = historyId;
		this.userId = userId;
		this.bookId = bookId;
		this.card = card;
		this.bookName = bookName;
		this.userName = userName;
		this.nickname = nickname;
		this.beginTime = beginTime;
		this.endTime = endTime;
		this.realTime = realTime;
		this.status = status;
	}
	public int getHistoryId() {
		return historyId;
	}
	public void setHistoryId(int historyId) {
		this.historyId = historyId;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public int getBookId() {
		return bookId;
	}
	public void setBookId(int bookId) {
		this.bookId = bookId;
	}
	public int getCard() {
		return card;
	}
	public void setCard(int card) {
		this.card = card;
	}
	public String getBookName() {
		return bookName;
	}
	public void setBookName(String bookName) {
		this.bookName = bookName;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getNickname() {
		return nickname;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	public Timestamp getBeginTime() {
		return beginTime;
	}
	public void setBeginTime(Timestamp beginTime) {
		this.beginTime = beginTime;
	}
	public Timestamp getEndTime() {
		return endTime;
	}
	public void setEndTime(Timestamp endTime) {
		this.endTime = endTime;
	}
	public Timestamp getRealTime() {
		return realTime;
	}
	public void setRealTime(Timestamp realTime) {
		this.realTime = realTime;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	@Override
	public String toString() {
		return "History [historyId=" + historyId + ", userId=" + userId + ", bookId=" + bookId + ", card=" + card
				+ ", bookName=" + bookName + ", userName=" + userName + ", nickname=" + nickname + ", beginTime="
				+ beginTime + ", endTime=" + endTime + ", realTime=" + realTime + ", status=" + status + "]";
	}
	
}
